package com.boarsoft.boar.batch.service;

import java.util.Date;
import java.util.List;

import com.boarsoft.boar.batch.bean.BatchSchedule;
import com.boarsoft.boar.batch.entity.BatchInfo;

public interface BatchScheduler {

	List<BatchSchedule> list() throws Exception;

	Date schedule(BatchInfo bi, Date startTime) throws Exception;

	Date schedule(BatchInfo bi, Integer delay) throws Exception;

	void unschedule(String group, String name) throws Exception;

	void start() throws Exception;

	void stop();

	boolean isStandByMode();

	boolean isStarted();

}
